<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>请假页面</title>
<link rel="stylesheet" href="layui/css/layui.css" media="all">
</head>
<body>
	<!-- 请假页面 -->
	<form id="ent" action="leave" method="post" lay-filter="ent" class="layui-form layui-form-pane"
		style="margin: 0; pause: 5px 0 0 25px; color: #333;">
		<div class="layui-form-item">
		<div class="layui-inline" style="display: none">
				<label class="layui-form-label">id</label>
				<div class="layui-input-inline">
					<input type="text" name="student_id.user_id" value="${user.user_id}" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">姓名</label>
				<div class="layui-input-inline">
					<input type="text" name="student_id.user_name" value="${user.user_name }" readonly="readonly" lay-verify="required"
						autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">班级</label>
				<div class="layui-input-inline">
					<input type="text" name="clazz" value="${user.classInfo.clazz_name }"readonly="readonly" lay-verify="required"
						autocomplete="off" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">紧急电话</label>
				<div class="layui-input-inline">
					<input type="text" name="l_phone" lay-verify="required|phone"
						autocomplete="off" class="layui-input">
				</div>
			</div>
		</div>
		<div class="layui-form-item layui-form-text">
		    <label class="layui-form-label">请假原因</label>
		    <div class="layui-input-block">
		      <textarea  class="layui-textarea" name="l_cause" id="l_cause"  style="height: 300px;vertical-align:top;"></textarea>
		    </div>
		  </div>

		<div class="layui-form-item">
			<label class="layui-form-label">请假类型</label>
			<div class="layui-input-inline">
				<select name="l_type" lay-verify="required" lay-search="" id="l_type">
					<option value="0" selected="">事假</option>
					<option value="1">病假</option>
					<option value="2">年假</option>
				</select>
			</div>
		</div>
		
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">请假时间</label>
				<div class="layui-input-inline">
					<input type="text" name="begin_time" id="begin_time" lay-verify="required"
						placeholder="yyyy-MM-dd HH:mm:ss" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">至</label>
				<div class="layui-input-inline">
					<input type="text" name="end_time" id="end_time" lay-verify="required"
						placeholder="yyyy-MM-dd HH:mm:ss" autocomplete="off" class="layui-input">
				</div>
			</div>
		</div>
		<!-- 按钮 -->
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button lay-submit="" class="layui-btn layui-btn-primary"
					lay-filter="enter">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
	<!-- js引入 -->
	<script src="js/jquery.js"></script>
	<script src="layui/layui.js" charset="utf-8"></script>
	<script src="js/leave.js"></script>
</body>
</html>